const Layout = () => import('@/layout/index.vue')

export default {
  path: '/merchant',
  component: Layout,
  redirect: '/merchant/sociolUnitChildPage',
  name: 'sociolUnitChildPage',
  meta: {
    title: '商户',
    icon: 'sidebar-menu'
  },
  children: [
    {
      path: 'sociolUnitChildPage',
      name: 'sociolUnitChildPage',
      component: () => import('@/views/merchant/sociolUnitChildPage.vue'),
      meta: {
        title: '商户履责'
      },
      children: [
        {
          path: 'patrolPoint',
          name: 'patrolPoint',
          component: () => import('@/views/merchant/patrolPoint.vue'),
          meta: {
            title: '巡查点位',
            sidebar: false,
            activeMenu: '/merchant/page'
          },
          children: [
            {
              path: 'pointLogList',
              name: 'pointLogList',
              component: () => import('@/views/sociolUnitMange/pointLogList.vue'),
              meta: {
                sidebar: false,
                title: '巡查记录'
              },
              children: [
                {
                  path: 'unitPatrolDetail',
                  name: 'unitPatrolDetail',
                  component: () => import('@/views/sociolUnitMange/unitPatrolDetail.vue'),
                  meta: {
                    sidebar: false,
                    title: '详情'
                  }
                }
              ]
            }
          ]
        },
        {
          path: 'qrcode',
          name: 'qrcode',
          component: () => import('@/views/merchant/qrcode.vue'),
          meta: {
            title: '二维码管理',
            sidebar: false,
            activeMenu: '/merchant/page'
          }
        },
        {
          path: 'patrolDetail',
          name: 'patrolDetail',
          component: () => import('@/views/merchant/patrolDetail.vue'),
          meta: {
            sidebar: false,
            title: '巡查点详情'
          }
        },
        {
          path: 'unitSubTaskMange',
          name: 'unitSubTaskMange',
          component: () => import('@/views/merchant/unitSubTaskMange.vue'),
          meta: {
            sidebar: false,
            title: '巡查任务管理'
          },
          children: [
            {
              path: 'unitSubTaskMangeDetail',
              name: 'unitSubTaskMangeDetail',
              component: () => import('@/views/sociolUnitMange/unitTaskMangeDetail.vue'),
              meta: {
                sidebar: false,
                title: '巡查任务详情'
              }
            }
          ]
        },
        {
          path: 'merchantUserMange',
          name: 'merchantUserMange',
          component: () => import('@/views/merchant/merchantUserMange.vue'),
          meta: {
            sidebar: false,
            title: '用户管理'
          }
        }
      ]
    }
  ]
}
